package camel.corp.universalcopy.a;

import android.util.Log;
import com.android.billingclient.api.j;
import com.camel.corp.universalcopy.a.d;
import com.camel.corp.universalcopy.a.f;

class d implements Runnable {
  d(f paramf) {}
  
  public void run() {
    if (f.c(this.a) == null) {
      Log.w("BillingManager", "Billing Client is not properyly initalized.");
      return;
    } 
    long l = System.currentTimeMillis();
    j.a a1 = f.c(this.a).b("inapp");
    StringBuilder stringBuilder = new StringBuilder();
    stringBuilder.append("Querying purchases elapsed time: ");
    stringBuilder.append(System.currentTimeMillis() - l);
    stringBuilder.append("ms");
    Log.i("BillingManager", stringBuilder.toString());
    if (this.a.a()) {
      j.a a2 = f.c(this.a).b("subs");
      if (a2.b() == 0) {
        if (a2.a() != null)
          a1.a().addAll(a2.a()); 
      } else {
        Log.e("BillingManager", "Got an error response trying to query subscription purchases");
      } 
    } else if (a1.b() == 0) {
      Log.i("BillingManager", "Skipped subscription purchases query since they are not supported");
    } else {
      stringBuilder = new StringBuilder();
      stringBuilder.append("queryPurchases() got an error response code: ");
      stringBuilder.append(a1.b());
      Log.w("BillingManager", stringBuilder.toString());
    } 
    f.a(this.a, a1);
  }
}


/* Location:              D:\Users\alienware\AndroidStudioProjects\Lazero\sample\sampler\classes-dex2jar\com\camel.jar!\camel\cor\\universalcopy\a\d.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.0.7
 */